
<div class="fl w208">
      <div class="t_1"><div><img src="image/title1.gif" /></div></div>
      <div class="box_1 l_nav">
            <ul>
				<?php foreach((array)$this->pclass as $class): ?>
				<li><a href="product.php?cid=<?=$class['class_id']?>&page_no=1"><?=$class['class_name']?></a></li>
				<?php endforeach; ?>
            </ul>
      </div>
      <div class="b_1"></div>
      <div class="line_1"></div>
      <div><a href="#"><img src="image/img208.gif" /></a></div>
</div>
<div class="fr w744">
<form id="form" method="post" action="#">
        <script type="text/javascript">
        var flow_no_payment = "您必须选定一个支付方式。";
        var flow_no_shipping = "您必须选定一个配送方式。";
        </script>

      <div class="step_title">
           <div class="fl">订单确认</div>
           <div class="fr">
                 <span>STEP1</span>
                 <span class="span_now">STEP2</span>
                 <span>STEP3</span>
           </div>
      </div>
               <div class="step_box1">
        <h5>商品列表&nbsp;&nbsp;&nbsp;<a class="f6" href="cart.php">修改</a></h5>
       <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table1">
            <tbody><tr>
              <th bgcolor="#ffffff">商品名称</th>
              <th bgcolor="#ffffff">购买数量</th>
				<th bgcolor="#ffffff">价格</th>
            </tr>
			<?php foreach((array)$this->products as $product): ?>
			<tr>
				<td bgcolor="#ffffff"><a class="f6" target="_blank" href="product.php?pid=<?=$product['product_id']?>"><?=$product['product_name']?></a></td>
				<td bgcolor="#ffffff" align="right"><?=$product['num']?></td>
				<td bgcolor="#ffffff" align="right">电话联系</td>
			</tr>
			<?php endforeach; ?>                                   
                      </tbody></table>
      </div>
      <div class="blank"></div>
      <div class="step_box1">
      <h5>收货人信息&nbsp;&nbsp;&nbsp;<a class="f6" href="my.php?act=address">修改</a></h5>
      <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table1">
            <tbody>
				<?php if($this->rlist): ?>
				<?php foreach((array)$this->rlist as $list): ?>
				<tr><td bgcolor="#ffffff" style="text-align:left"><input type="radio" value="<?=$list['cr_id']?>"  name="rid"/><?=$list['receive_name']?>&nbsp;&nbsp;<?=$list['address']?>&nbsp;&nbsp;<?=$list['zip']?>&nbsp;&nbsp;<?=$list['tel']?></td></tr>
				<?php endforeach; ?>
				<?php else: ?>
				<tr><td bgcolor="#ffffff">您没有收货信息，<a href="my.php?act=address" target="_blank">立即补充</a></td></tr>
				<?php endif ?>
            </tbody>
	  </table>
      </div>
             
          <div class="blank"></div>
      <div class="step_box1">
      <h5>发票信息&nbsp;&nbsp;&nbsp;<a class="f6" href="flow.php?step=consignee">修改</a></h5>
      <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table1">
            <tbody>
				<?php if($this->flist): ?>
				<?php foreach((array)$this->flist as $list): ?>
				<tr><td bgcolor="#ffffff" style="text-align:left"><input type="radio" value="<?=$list['fid']?>"  name="fid"/><?=$list['name']?>&nbsp;&nbsp;<?=$list['tt']?>&nbsp;&nbsp;<?=$list['nr']?></td></tr>
				<?php endforeach; ?>
				<?php else: ?>
				<tr><td bgcolor="#ffffff">您没有发票信息，<a href="my.php?act=fapiao" target="_blank">立即补充</a></td></tr>
				<?php endif ?>
            </tbody>
	  </table>
      </div>
     
    <div class="blank"></div>
    <div class="step_box1">
</div>           <div align="center" style="margin:8px auto;">
            <input type="image" src="./static/image/bnt_subOrder.gif" id="submit"/>
            </div>
    </div>
    </form>

</div>
<span class="clear_f"></span>
<script>
$(function(){
	$('#form').submit(function(){
		$.post('cart.php?act=submit',$(this).serialize(),function(data){
			alert(data.message);
			if (data.state == 1)
			{
				window.location.href = 'cart.php?act=succeed&order_sn='+data.extra;
			}
		},'json');
		return false;
	});
});
</script>